package com.kinyx.framework.utils;

import org.junit.Assert;
import org.junit.Test;

public class KStringUtils_Tester_trimToEmpty {

	@Test
	public void test() {
		Assert.assertEquals("", KStringUtils.trimToEmpty(null));
		Assert.assertEquals("", KStringUtils.trimToEmpty("null"));

		Assert.assertEquals("", KStringUtils.trimToEmpty(""));
		Assert.assertEquals("", KStringUtils.trimToEmpty(" "));

		Assert.assertEquals("null", KStringUtils.trimToEmpty(" null "));
		Assert.assertEquals("foo", KStringUtils.trimToEmpty("foo"));
		Assert.assertEquals("foo", KStringUtils.trimToEmpty(" foo "));
	}

}
